<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="layui/css/layui.css" media="all" rel="stylesheet">
    <script src="layui/layui.js" type="text/javascript"></script>
    <script src="js/jquery-3.3.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#question_add").click(function () {
                $("iframe").attr("src", "question_add.html");
            });
            $("#question_search").click(function () {
                $("iframe").attr("src", "question_search.html");
            });
            $("#question_import").click(function () {
                $("iframe").attr("src", "question_import.html");
            });
            $("#question_echarts").click(function () {
                $("iframe").attr("src", "question_echarts.html");
            });
            $("#make_test_by_plan").click(function () {
                $("iframe").attr("src", "make_test_by_plan.html");
            });
            $("#make_test_by_hand").click(function () {
                $("iframe").attr("src", "make_test_by_hand.html");
            });
            $("#info_edit").click(function () {
                $("iframe").attr("src", "tea_info_edit.html");
            });
            $("#pwd_edit").click(function () {
                $("iframe").attr("src", "edit_password.html");
            });
            $("#me_creat").click(function () {
                $("iframe").attr("src", "me_creat.html");
            });
            $("#end_test").click(function () {
                $("iframe").attr("src", "test_manage.html");
            });
            $("#me_correcting").click(function () {
                $("iframe").attr("src", "me_correcting.html");
            });
        })
    </script>
</head>

<div class="layui-layout layui-layout-admin">
    <body class="layui-layout-body">
    <!-- 顶部菜单开始 -->
    <div class="layui-header">
        <div class="layui-logo">在线考试系统-教师</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img class="layui-nav-img" src="images/img.jpeg"/>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="/login.html">退出系统</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <!-- 顶部菜单结束 -->

    <!-- 左侧菜单开始 -->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">题库管理</a>
                    <dl class="layui-nav-child">
                        <dd class="layui-this"><a href="javascript:void(0)" id="question_add">添加题目信息</a></dd>
                        <dd><a href="javascript:void(0)" id="question_search">查询题目信息</a></dd>
                        <dd><a href="javascript:void(0)" id="question_import">导入题目信息</a></dd>
                        <dd><a href="javascript:void(0)" id="question_echarts">题目信息统计</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">快速组卷</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:void(0)" id="make_test_by_plan">随机组卷</a></dd>
                        <dd><a href="javascript:void(0)" id="make_test_by_hand">按章节-知识点组卷</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">试卷管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:void(0)" id="me_creat">我创建的</a></dd>
                        <dd><a href="javascript:void(0)" id="me_correcting">我批改的</a></dd>
                        <dd><a href="javascript:void(0)" id="end_test">已结束的</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">个人管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:void(0)" id="pwd_edit">修改登录密码</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧菜单结束 -->

    <!-- 主体开始 -->
    <div class="layui-body">

        <iframe src="question_add.html" style="width: 100%;height: 100%;border: 0px"></iframe>

    </div>
    <!-- 主体结束 -->

    <!-- 底部开始 -->
    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © 黄光辉
    </div>
    </body>
    <!-- 底部结束 -->
</div>
<script>
    //二级菜单联动
    layui.use('element', function () {
        var element = layui.element;

    });
</script>
</html>